package com.ma.server.Impl;

import com.ma.Dao.ClassDao;
import com.ma.entity.Classes;
import com.ma.server.ClassesServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ProjectName: teamProucer
 * @Package: com.ma.server.Impl
 * @ClassName: ClassesServerImpl
 * @Author: YHHHH
 * @Description:
 * @Date: 2021/4/9 20:42
 * @Version: 1.0
 */
@Service
@Transactional
public class ClassesServerImpl implements ClassesServer {

    @Autowired
    private ClassDao classDao;

    @Override
    public List<Classes> findAllClasses() {
        List<Classes> allClasses = classDao.findAllClasses();

        return allClasses;
    }
}
